<?php
class CAuctionCacheBehavior extends CActiveRecordBehavior{    
    
    public $auctionIdAttribute;
    public $auctionStatusAttribute;
    
    public function afterSave($event){
        $auctionCache = new AuctionCache();
        $id = $this->getOwner()->{$this->auctionIdAttribute};
        $auctionCache->buildByAr($id);
    }
    
}